#include "Poco/Activity.h"
#include "iostream"

class TestActivity
{
public:
    TestActivity():at(this, &TestActivity::runme)
    {

    }

    void start()
    {
        at.start();
    }
protected:
    void runme()
    {
        while(1)
            std::cout<<"in rum\n";
    }
private:
    Poco::Activity<TestActivity> at;
};

int main()
{
    TestActivity ta;
    ta.start();

    

    return 0;
}